﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Site1.Master" AutoEventWireup="true" CodeBehind="Nuevo.aspx.cs" Inherits="BoxScore.jugador.Nuevo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="lateral1" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="lateral2" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="lateral3" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="contenido" runat="server">

<h2 class="title" >Nuevo Jugador</h2>

<hr />

<table>
    <tr>
        <td>Nombres</td>
        <td>            <asp:TextBox ID="first_nameTextBox" runat="server" 
                Text='<%# Bind("first_name") %>' />
                <br />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="first_nameTextBox" runat="server" ErrorMessage="* Obligatorio"></asp:RequiredFieldValidator>
                
</td>
    </tr>
    
    <tr>
        <td>Apellidos</td>
        <td><asp:TextBox ID="last_nameTextBox" runat="server" 
                    Text='<%# Bind("last_name") %>' />
        <br />
            <asp:RequiredFieldValidator ControlToValidate="last_nameTextBox" ID="RequiredFieldValidator2" runat="server" ErrorMessage="* Obligatorio"></asp:RequiredFieldValidator>        
    </td>
    </tr>

    <tr>
        <td>C.I. </td>
        <td>
            <asp:DropDownList ID="DropDownList4" runat="server">
                <asp:ListItem>V</asp:ListItem>
                <asp:ListItem>E</asp:ListItem>
            </asp:DropDownList>
        -
        <asp:TextBox ID="ciTextBox" runat="server" Text='<%# Bind("ci") %>' />
            <asp:MaskedEditExtender ID="ciTextBox_MaskedEditExtender" runat="server" 
                CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" 
                Mask="99999999" MaskType="Number" TargetControlID="ciTextBox" 
                AutoComplete="False" InputDirection="RightToLeft">
            </asp:MaskedEditExtender>
            
            <br />
            
            <asp:RequiredFieldValidator ControlToValidate="ciTextBox" ID="RequiredFieldValidator3" runat="server" ErrorMessage="* Obligatorio"></asp:RequiredFieldValidator>
        </td>
    </tr>

    <tr>
        <td>Fecha de Nacimiento</td>
        <td><asp:TextBox ID="birth_dateTextBox" runat="server" 
                Text='<%# Bind("birth_date") %>' />
            <asp:CalendarExtender ID="birth_dateTextBox_CalendarExtender" runat="server" 
                Enabled="True" Format="yyyy-MM-dd" TargetControlID="birth_dateTextBox">
            </asp:CalendarExtender>
        </td>
    </tr>

    <tr>
        <td>Foto</td>
        <td>
            <asp:AsyncFileUpload ID="AsyncFileUpload1" runat="server" />
        </td>
    </tr>

    <tr>
        <td>Activo</td>
        <td>
            <asp:CheckBox ID="CheckBox1" runat="server" /></td>
    </tr>

    <tr>
        <td>Lesionado</td>
        <td>
            <asp:CheckBox ID="CheckBox2" runat="server" /></td>
    </tr>

    <tr>
        <td>Posicion</td>
        <td>
            <asp:DropDownList ID="DropDownList1" runat="server" 
                DataSourceID="ObjectDataSource1" DataTextField="descripcion" 
                DataValueField="id">
            </asp:DropDownList>
            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                SelectMethod="getTabla" TypeName="BoxScore.Model.BoxScoreBD">
                <SelectParameters>
                    <asp:Parameter DefaultValue="player" Name="tabla" Type="String" />
                    <asp:Parameter DefaultValue="position" Name="campo" Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>
        </td>
    </tr>
    
    <tr>
        <td>Lanza</td>
        <td>
            <asp:DropDownList ID="DropDownList2" runat="server" 
                DataSourceID="ObjectDataSource2" DataTextField="descripcion" 
                DataValueField="id">
            </asp:DropDownList>
            <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" 
                SelectMethod="getTabla" TypeName="BoxScore.Model.BoxScoreBD">
                <SelectParameters>
                    <asp:Parameter DefaultValue="player" Name="tabla" Type="String" />
                    <asp:Parameter DefaultValue="throwing_arm" Name="campo" Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>
        </td>
    </tr>
    <tr>
        <td>Batea</td>
        <td>
            <asp:DropDownList ID="DropDownList3" runat="server" 
                DataSourceID="ObjectDataSource3" DataTextField="descripcion" 
                DataValueField="id">
            </asp:DropDownList>
            <asp:ObjectDataSource ID="ObjectDataSource3" runat="server" 
                SelectMethod="getTabla" TypeName="BoxScore.Model.BoxScoreBD">
                <SelectParameters>
                    <asp:Parameter DefaultValue="player" Name="tabla" Type="String" />
                    <asp:Parameter DefaultValue="batting" Name="campo" Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>
        </td>
    </tr>
    <tr align="center">
        <td colspan="2">
            <asp:Button ID="Button1" runat="server" Text="Cancelar" />
            &nbsp;
            <asp:Button ID="Button2" runat="server" Text="Guardar" CausesValidation="true" 
                onclick="Button2_Click" />
        </td>
    </tr>
    
    
</table>



</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="resultados" runat="server">
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="proximos" runat="server">
</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderID="publicidadAjena" runat="server">
</asp:Content>
<asp:Content ID="Content9" ContentPlaceHolderID="publicidad" runat="server">
</asp:Content>
